<?php
/**
 * courses _list component view.
 *
 * @package    FinalsClub
 * @subpackage notes
 * @author     Colin Hom
 */
?>
	<ul class="courses-list">
<?php	foreach($course_list as $course): ?>
			<li>
				<h3>
					<?= render_course_title_link($course,$group_id) ?>
					<span STYLE="font-size:10px"><?= link_to("Contribute Note",'notes/new?course_id='.$course->getId().'&group_id='.$group_id) ?></span>
				</h3>
				<p class="date"><?= $course->getCreatedAt("F d, Y") ?></p>
				<?php if ($group_display){ //this listing could be unwanted in certain cases, admin checks for credentials
					include_partial('notes/share', array("course_id" => $course->getId(), "group_id" => $group_id) );
				}	?>
				<div class="details">
					<p class="related-users"><?= render_network_link($course->getNetworkId()) ?></p>
					<p><?= $course->getDescription() ?></p>
					<!--
					<p class="stars two">
						<span>2 stars</span>
						<a href="#">3<span> comments</span></a>
					</p>
					-->
					<div class="clearer"></div>
				</div>
			</li>
	<?php endforeach ?>		
	</ul>
	<?= pager_navigation($group_course_pager,url_for('notes/index?group_id='.$group_id)) ?>		